//
//  sendFirCirGetNews.m
//  tcpoctest
//
//  Created by gump on 5/9/13.
//  Copyright (c) 2013 gump. All rights reserved.
//

#import "sendFirCirGetNews.h"

@implementation sendFirCirGetNews

-(void)SendFCGetNewByMail:(NSString *)mail withID:(NSString *)strid
{
    //发送 74char(1),9char(1),用户名长度char(1), 用户名char(x),动态ID字串长度char(1),动态ID字串char(x)
    
    if (![self CheckLogin]) {
        return;
    }
    
    int l = CHAR_PL * 4 + INT_PL + [mail length] + [strid length];
    
    [self initDataByLength:l];
    
    [sb WriteChar:[mail length]];
    [sb WriteString:mail withLength:[mail length]];
    
    [sb WriteChar:[strid length]];
    [sb WriteString:strid withLength:[strid length]];
    
    [self Package];
}

@end
